<template>
  <div>
    <el-button @click="dialogVisible=true">反馈</el-button>
    <el-dialog :visible="dialogVisible" :show-close="false">
      <div class="demo">
        <el-form ref="form" :model="form" label-width="170px" class="edit-form">
          <el-form-item label="姓名">
            <el-input v-model="form.name" type="text" />
          </el-form-item>
          <div class="btns">
            <el-button @click="dialogVisible=false">取消</el-button>
            <el-button type="primary" @click="onSubmit">保存</el-button>
          </div>
        </el-form>
      </div>
    </el-dialog>
  </div>
</template>

<script>
export default {
  name: 'Feedback',
  data() {
    return {
      dialogVisible: false,
      form: {}
    }
  },
  methods: {
    onSubmit() {
      console.log('onSubmit')
    }
  }
}
</script>

<style>

</style>
